package com.travelDevelop.controller;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/error")
public class ErrorController {
   
	@RequestMapping("noPermission")
	public String noPermission(HttpServletResponse response){
		response.setHeader("permissionStatus", "noPermission");
		return "/error/noPermission";
	}
	
	@RequestMapping("404")
	public String error404(){
		return "/error/404";
	}
	
	@RequestMapping("500")
	public String error500(){
		return "/error/500";
	}
}
